mapping = {
    "mappings": {
        "properties": {
            "nm": {
                "type": "keyword"
            },
            "fssj": {
                "type": "date",
                "format": "yyyy-MM-dd"
            },
            "sjmc": {
                "type": "text",
                "analyzer": "ik_max_word"
            },
            "sjms": {
                "type": "text",
                "analyzer": "ik_max_word"
            },
            "ssly": {
                "type": "keyword"
            },
            "lyss": {
                "type": "keyword"
            },
            "entities": {
                "type": "keyword"
            },
            "entities_organization": {
                "type": "keyword"
            },
            "entities_person": {
                "type": "keyword"
            },
            "entities_place": {
              "type": "keyword"
            },
            "keywords": {
                "type": "nested",
                "properties": {
                    "name": {
                        "type": "keyword"
                    },
                    "score": {
                        "type": "double"
                    }
                }
            }
        }
    }
}

########################## 必须修改开始 ##################################

# 用户名
ELASTIC_USERNAME = "elastic"
# 用户密码
ELASTIC_PASSWORD = "iie123$%^"
# 集群地址
ELASTIC_ADDRESS = ["http://10.26.32.92:9222"]
READ_INDEX = "test_new_entities_news"
INDEX_NAME = "test_event"
# 副本大小
NUM_REPLICA = 0
MAX_RESULT_WINDOW = 100000
# 配置要更新的设置
settings = {
    "settings": {
        "number_of_shards": 1,
        "number_of_replicas": NUM_REPLICA,
        "max_result_window": MAX_RESULT_WINDOW
    }
}